<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>教材添加与修改</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    
    <!-- Tailwind 配置 -->
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#165DFF',
                        secondary: '#36CBCB',
                        neutral: '#F5F7FA',
                        'neutral-dark': '#4E5969',
                    },
                    fontFamily: {
                        sans: ['Inter', 'system-ui', 'sans-serif'],
                    },
                }
            }
        }
    </script>
</head>
<body class="bg-gray-50 font-sans text-gray-800 min-h-screen flex flex-col">
    <!-- 顶部导航栏 -->
    <header class="bg-white shadow-sm sticky top-0 z-50">
        <div class="container mx-auto px-4 py-3 flex items-center justify-between">
            <!-- Logo区域 -->
            <div class="flex items-center space-x-3">
                <div class="w-10 h-10 rounded-lg bg-primary flex items-center justify-center text-white">
                    <i class="fa fa-book text-lg"></i>
                </div>
                <h1 class="text-xl font-bold text-gray-800">教材资源管理系统</h1>
            </div>
        </div>
    </header>

    <main class="flex-1 container mx-auto px-4 py-6">
        <!-- 面包屑导航 -->
        <div class="flex items-center text-sm text-gray-500 mb-6">
            <a href="#" class="hover:text-primary">首页</a>
            <i class="fa fa-angle-right mx-2 text-gray-300 text-xs"></i>
            <span class="text-gray-700">教材添加与修改</span>
        </div>

        <!-- 页面标题 -->
        <h2 class="text-2xl font-bold text-gray-800 mb-6">教材添加与修改</h2>

        <!-- 教材表单 -->
        <div class="bg-white rounded-xl shadow-sm p-6">
            <form>
                <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
                    <!-- 教材名称 -->
                    <div>
                        <label for="title" class="block text-sm font-medium text-gray-700 mb-1">教材名称</label>
                        <input type="text" id="title" name="title" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-primary focus:border-primary">
                    </div>

                    <!-- 版本 -->
                    <div>
                        <label for="version" class="block text-sm font-medium text-gray-700 mb-1">版本</label>
                        <select id="version" name="version" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-primary focus:border-primary appearance-none">
                            <option>人教版</option>
                            <option>苏教版</option>
                            <option>北师大版</option>
                            <option>湘教版</option>
                        </select>
                    </div>
                </div>

                <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
                    <!-- 学段 -->
                    <div>
                        <label for="grade" class="block text-sm font-medium text-gray-700 mb-1">学段</label>
                        <select id="grade" name="grade" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-primary focus:border-primary appearance-none">
                            <option>高中一年级</option>
                            <option>高中二年级</option>
                            <option>高中三年级</option>
                        </select>
                    </div>

                    <!-- 类型 -->
                    <div>
                        <label for="type" class="block text-sm font-medium text-gray-700 mb-1">类型</label>
                        <select id="type" name="type" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-primary focus:border-primary appearance-none">
                            <option>必修</option>
                            <option>选修</option>
                            <option>拓展</option>
                        </select>
                    </div>
                </div>

                <!-- 简介 -->
                <div class="mb-6">
                    <label for="description" class="block text-sm font-medium text-gray-700 mb-1">教材简介</label>
                    <textarea id="description" name="description" rows="4" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-primary focus:border-primary"></textarea>
                </div>

                <!-- 操作按钮 -->
                <div class="flex justify-end space-x-4">
                    <button type="button" class="px-6 py-2 border border-gray-300 rounded-lg text-sm text-gray-700 hover:bg-gray-50 transition-colors">
                        取消
                    </button>
                    <button type="submit" class="px-6 py-2 bg-primary text-white rounded-lg text-sm hover:bg-primary/90 transition-colors">
                        保存
                    </button>
                </div>
            </form>
        </div>
    </main>
</body>
</html>